import 'package:json_annotation/json_annotation.dart';

part 'mybox.g.dart';


@JsonSerializable()
class mybox extends Object with _$myboxSerializerMixin{

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'code')
  String code;

  @JsonKey(name: 'result')
  Result result;

  mybox(this.msg,this.code,this.result,);

  factory mybox.fromJson(Map<String, dynamic> srcJson) => _$myboxFromJson(srcJson);

}


@JsonSerializable()
class Result extends Object with _$ResultSerializerMixin{

  @JsonKey(name: 'available')
  double available;

  @JsonKey(name: 'financial')
  double financial;

  @JsonKey(name: 'sum')
  double sum;

  @JsonKey(name: 'walletAddress')
  String walletAddress;

  @JsonKey(name: 'purseAddress')
  String purseAddress;

  Result(this.available,this.financial,this.sum,this.walletAddress,this.purseAddress,);

  factory Result.fromJson(Map<String, dynamic> srcJson) => _$ResultFromJson(srcJson);

}


